<?php
namespace app\api\model;
use think\Model;
class AdminUsers extends Model
{
    protected $pk = 'user_id';
    protected $schema = [
        'user_id'   => 'int',
        'user_name' => 'string',
        'name'      => 'string',
        'pwd'       => 'string',
        'is_lock'   => 'int',
        'is_super'  => 'int',
        'role'      => 'int',
        'last_login'=> 'datetime',
        'last_login_ip'=> 'string'
    ];

    public function getPwdAttr($value){
        return md5($value);
    }


    
}
